import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:school_safe_teacher/resourse/app_colors.dart';


import 'action.dart';
import 'state.dart';

Widget buildView(
    SplashState state, Dispatch dispatch, ViewService viewService) {
  return Container(
    color: Colors.white,
    child: Stack(
      alignment: Alignment.center,
      children: [
        Align(child: Image.asset("images/1125-2436.jpg"),alignment: Alignment.bottomCenter,),
        // Align(child: Column(
        //   mainAxisSize: MainAxisSize.min,
        //   children: [
        //     Image.asset("images/logo@2x.png",height: 81,width: 81,),
        //     SizedBox(height: 21,),
        //     Image.asset("images/slogan@2x.png",width: 187.5,height: 37.5,),
        //     SizedBox(height: 180,)
        //   ],
        // ),alignment: Alignment.center,),
        Align(
          alignment: Alignment.topRight,
          child: Container(
            margin: EdgeInsets.all(30),
            padding: EdgeInsets.all(8),
            width: 30,
            height: 30,
            child: Text(
              state.countdownTime.toString(),
              textAlign: TextAlign.center,
              style: TextStyle(
                  fontSize: 12,
                  fontWeight: FontWeight.bold,
                  color: AppColors.deepTextColor),
            ),
            decoration: BoxDecoration(
              color: AppColors.backgroundColor,
              borderRadius: BorderRadius.all(Radius.circular(28)),
              border: Border.all(width: 0, style: BorderStyle.none),
            ),
          ),
        )
      ],
    ),
  );
}
